View Javadoc

1   /*
2    * This file is part of Domingo
3    * an Open Source Java-API to Lotus Notes/Domino
4    * hosted at http://domingo.sourceforge.net
5    *
6    * Copyright (c) 2003-2006 Beck et al. projects GmbH München (http://www.bea.de)
7    *
8    * This library is free software; you can redistribute it and/or
9    * modify it under the terms of the GNU Lesser General Public
10   * License as published by the Free Software Foundation; either
11   * version 2.1 of the License, or (at your option) any later version.
12   *
13   * This library is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16   * Lesser General Public License for more details.
17   *
18   * You should have received a copy of the GNU Lesser General Public
19   * License along with this library; if not, write to the Free Software
20   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21   */
22  
23  package de.bea.domingo.connector.impl;
24  
25  import javax.resource.cci.ResourceAdapterMetaData;
26  
27  import de.bea.domingo.i18n.ResourceManager;
28  import de.bea.domingo.i18n.Resources;
29  
30  /***
31   * @author <a href=mailto:kurt.riede@bea.de>Kurt Riede</a>
32   */
33  public final class DomingoMetaData implements ResourceAdapterMetaData {
34  
35      /*** Internationalized resources. */
36      private static final Resources RESOURCES = ResourceManager.getClassResources(DomingoMetaData.class);
37  
38      /*** singleton instance of this class. */
39      private static final DomingoMetaData INSTANCE = new DomingoMetaData();;
40  
41      /*** Product name of the underlying EIS instance. */
42      public static final String EIS_PRODUCT_NAME = RESOURCES.getString("eis.product.name");
43  
44      /*** Maximum limit on number of active concurrent connections that an EIS instance can support across client processes. */
45      public static final int MAX_CONNECTIONS = RESOURCES.getInteger("max.connections");
46  
47      private static final String[] INTERACTION_SPECS = new String[0];
48  
49      /***
50       * Private constructor to prevent instantiation.
51       */
52      private DomingoMetaData() {
53      }
54  
55      /***
56       * return the singleton instance of this class.
57       *
58       * @return singleton instance
59       */
60      public static DomingoMetaData getInstance() {
61          return INSTANCE;
62      }
63  
64      /***
65       * {@inheritDoc}
66       *
67       * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVersion()
68       */
69      public String getAdapterVersion() {
70          return RESOURCES.getString("adapter.version");
71      }
72  
73      /***
74       * {@inheritDoc}
75       *
76       * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVendorName()
77       */
78      public String getAdapterVendorName() {
79          return RESOURCES.getString("adapter.vendor.name");
80      }
81  
82      /***
83       * {@inheritDoc}
84       *
85       * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterName()
86       */
87      public String getAdapterName() {
88          return RESOURCES.getString("adapter.name");
89      }
90  
91      /***
92       * {@inheritDoc}
93       *
94       * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterShortDescription()
95       */
96      public String getAdapterShortDescription() {
97          return RESOURCES.getString("adapter.short.description");
98      }
99  
100     /***
101      * {@inheritDoc}
102      *
103      * @see javax.resource.cci.ResourceAdapterMetaData#getSpecVersion()
104      */
105     public String getSpecVersion() {
106         return RESOURCES.getString("connector.spec.version");
107     }
108 
109     /***
110      * {@inheritDoc}
111      *
112      * @see javax.resource.cci.ResourceAdapterMetaData#getInteractionSpecsSupported()
113      */
114     public String[] getInteractionSpecsSupported() {
115         return INTERACTION_SPECS;
116     }
117 
118     /***
119      * {@inheritDoc}
120      *
121      * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputAndOutputRecord()
122      */
123     public boolean supportsExecuteWithInputAndOutputRecord() {
124         return false;
125     }
126 
127     /***
128      * {@inheritDoc}
129      *
130      * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputRecordOnly()
131      */
132     public boolean supportsExecuteWithInputRecordOnly() {
133         return false;
134     }
135 
136     /***
137      * {@inheritDoc}
138      *
139      * @see javax.resource.cci.ResourceAdapterMetaData#supportsLocalTransactionDemarcation()
140      */
141     public boolean supportsLocalTransactionDemarcation() {
142         return false;
143     }
144 }